/**
 * @author ztl
 * @date 2017年1月14日下午6:05:15
 */
package com.zhihuishu.micro.course.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhihuishu.micro.course.dao.CourseAnalysisDataMapper;
import com.zhihuishu.micro.course.model.CourseAnalysisData;
import com.zhihuishu.micro.course.service.CourseAnalysisDataService;

/**
 * @description 
 * @author dell-ztl
 * 2017年1月14日
 */
@Service("courseAnalysisDataService")
public class CourseAnalysisDataServiceImpl extends BaseService implements CourseAnalysisDataService {

	@Resource
    private CourseAnalysisDataMapper courseAnalysisDataMapper;
	
	@Override
	public List<Map<String, Object>> getCourseListByUserId(Long userId) {
		return courseAnalysisDataMapper.getCourseListByUserId(userId);
	}

	@Override
	public CourseAnalysisData getCourseAnalysisDataByCourseId(Long courseId, Long userId) {
		return courseAnalysisDataMapper.getCourseAnalysisDataByCourseId(courseId, userId);
	}

}
